    {layout name="common/layout" /}
	
<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>

<div class="Hui-article-box" style="margin-top: 37px;">
	<div class="breadcrumb"><i class="Hui-iconfont"></i> <a href="{:url('home/index')}" class="maincolor">首页</a>
		<span class="c-999 en">&gt;</span>
	</div>
	<div class="Hui-article">
		<div style="overflow: hidden;width: 1000px;height: 100px;border:1px solid #ccc;margin:20px auto;">
				<div style="float: left;margin-left: 30px;">
					<h3>银行账号信息</h3>
					<span>商家资料设置/<span style="font-weight: bold;font-size: 16px;">银行账号信息</span></span>
				</div>
			</div>
		<form id="frm" action=""> 	
			<label for=""  style="margin-left: 20px;">
				<span>&nbsp;&nbsp;&nbsp;开户行：</span>
				<input type="text" name="bank_account_openning_bank" class="input-text radius size-M" placeholder="请输入开户行，必须精确到支行" >
			</label><br>
			<label for="" style="margin-left: 20px;">
				<span>银行账户：</span>
				<input type="text" name="bank_account_number" class="input-text radius size-M" placeholder="请输入银行账户">
			</label><br>
			<label for=""  style="margin-left: 20px;">
				<span>账户名称：</span>
				<input type="text" name="bank_account_name" class="input-text radius size-M" placeholder="请输入对应公司名称">
			</label>
			<div class="btn-l">
				<input type="button" id="submitBtn" class="btn" value="保存">
				<input type="button" class="btn" value="返回" style="margin-left: 20px;">
			</div>
		</form>	
	</div>
</div>
	
 
<script type="text/javascript">
	$('#submitBtn').click(function(){
    	$.ajax({
          type: "POST",
          url: "<?php echo url('bankaccount/create', '', false); ?>",
          dataType: 'json',
          cache: false,
          data: $('#frm').serialize(),
          success: function(data) {
            if(data.status == 1) 
            {
              layer.msg(data.msg);

            }else{
              layer.msg(data.msg);
            }

          },
          error: function(xhr, status, error) {
            console.log(xhr);
            console.log(status);
            console.log(error);
          }
        });
    });

</script>
 